<template>
  <div>
    <h2>个人中心</h2>
    <el-button @click="show">查看合同</el-button>
    <pdf ref="mypdf"/>
  </div>
</template>

<script>  
// import VuePdf from 'vue-pdf';
// import pdf from 'vue-pdf'
  export default {
    components: { pdf },
    methods: {
      show() {
        this.$refs.mypdf.dialogVisible = true;

      }
    },
}

</script> 

<style lang="scss" scoped>

</style>